<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>


	<div class="form_div">
	

	<div class="row">
	
	<p class="help-block">Campos com <span class="required">*</span> são Obrigatórios.</p><br/>
		
	<?php echo $form->errorSummary(array($model, $worker)); ?>
	
		<span style="float: left; width: 300px;">
	<?php echo $form->labelEx($worker,'name'); ?>
	<?php echo $form->textField($worker,'name',array('class'=>'span6','maxlength'=>250)); ?>
	<?php echo $form->error($worker, 'name'); ?>
	</span>
	</div>
	
	<div class="row">
	<span style="float: left; width: 300px;">
	<?php echo $form->textFieldRow($model,'registration',array('class'=>'span3','maxlength'=>45)); ?>
	</span>
	<span style="float: left; width: 450px;">
	<?php echo $form->labelEx($model,'username'); ?>
	<?php echo $form->textField($model,'username',array('class'=>'span3','maxlength'=>45)); ?>
	<?php echo $form->error($model, 'username'); ?>
	</span>
	</div>
	
	<div class="row">
	<span style="float: left; width: 300px;">
	<?php echo $form->labelEx($model,'password');?>
	<?php echo $form->passwordField($model,'password',array('class'=>'span3','maxlength'=>45)); ?>
	<?php echo $form->error($model, 'password'); ?>
	</span>
	<span style="float: left; width: 450px;">
	<?php echo $form->labelEx($model,'repeat_password');?>
	<?php echo $form->passwordField($model,'repeat_password',array('class'=>'span3','maxlength'=>45)); ?>
	<?php echo $form->error($model, 'repeat_password'); ?>
	</span>
	</div>
	
	<div class="row">
	<span style="float: left; width: 450px;">
	<?php echo $form->textFieldRow($model,'email',array('class'=>'span6','maxlength'=>250)); ?>
	</span>
	</div>
	
	<br/><br/><br/>
	<div class="form-actions button_center">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Cadastrar' : 'Salvar',
		)); ?>
	</div>
	</div>
<?php $this->endWidget(); ?>
